﻿<!DOCTYPE html>
<html>

<head>
  <title>根据测分生成用例</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      width: 600px;
      height: 100%;
      text-align: center;
      padding: 20px;
      box-sizing: border-box;
    }
    
    h1 {
      margin-bottom: 10px;
    }
    
    input[type="text"], textarea {
      width: 100%;
      padding: 5px;
      margin-bottom: 10px;
      box-sizing: border-box;
      resize: none;
    }

    #contentInput {
      height: 300px;
    }
 
    
    button {
      width: 100%;
      padding: 10px;
      cursor: pointer;
      background-color: #007BFF;
      color: white;
      border: none;
      border-radius: 5px;
    }
    
    button:hover {
      background-color: #0056b3;
    }

    /* 添加样式 */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .overlay.hidden {
      display: none;
    }

    .overlay-content {
      background-color: #f9f9f9;
      border: 1px solid #ccc;
      padding: 20px;
      text-align: center;
    }
  </style>
</head>

<body>
  <h1>根据测分生成用例</h1>
  <input type="text" id="nodePath" placeholder="输入上传用例位置">
  <input type="text" id="projectName" placeholder="输入项目名称">
  <textarea id="contentInput" rows="5" placeholder="输入测分内容"></textarea>
  <button id="sendButton">生成自动化用例</button>

  <!-- 添加提示信息的 div -->
  <div id="loadingOverlay" class="overlay hidden">
    <div class="overlay-content">
      <p>用例生成中，请等待...</p>
    </div>
  </div>

  <script src="popup.js"></script>
</body>

</html>